tools/libfsimage: Fix PATH_MAX redefinition error
authorCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 8 Jun 2021 12:35:26 +0000 (15:35 +0300)
committerJulien Grall <jgrall@amazon.com>
Fri, 9 Jul 2021 14:59:59 +0000 (15:59 +0100)
commitd276e0f3f14f2d46f27989008770eb2b9c678bc4
tree01c6c13f334c07c6dac8d66ee9ffd9fcccd65e5e
parent37588941a249a0b45a44a6385b187d7d10132e7d
tools/libfsimage: Fix PATH_MAX redefinition error

If PATH_MAX is already defined in the system (e.g. in /usr/include/limits.h
header) then gcc will trigger a redefinition error because of -Werror.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
tools/libfsimage/ext2fs/fsys_ext2fs.c
tools/libfsimage/reiserfs/fsys_reiserfs.c